package cn.zch.soft.util.des;
public class Test {
  public static void main(String[] args) {
    try {
      DesUtil des = new DesUtil("test");// 自定义密钥
      String src1 = "c66fc61212bbc6ed";
      String src2 = "173afc0c2a0735c9";
      String src3 = "32f824f6483daf3f";
      String src4 = "dd15dd1533622896";
      String src5 = "11f5404fea871fbd";
      String src6 = "6a457469768c84eb";
      String src7 = "a9e28c83699391f8";
      String src8 = "9005bd85131c03ab";
      String src9 = "d1d5d789fa18b7f2";
      String src10 = "a9e28c83699391f8";
      String src11 = "a9e28c83699391f8";
      String src12 = "8f3790f4c9291dd9";
      //			String src1 = des.encrypt(src);
      //			String src2 = des.decrypt(src1);
      //			String src3 = Md5Util.getMd5(src1);
      //			System.out.println("DES加密前的字符：" + src + "，长度：" + src.length());
      //			System.out.println("DES加密后的字符：" + src1 + "，长度：" + src1.length());
      //			System.out.println("DES解密后的字符：" + src2 + "，长度：" + src2.length());
      //			System.out.println("MD5加密后的字符：" + src3 + "，长度：" + src3.length());
      System.out.println("DES解密：" + src1 + "，长度：" + des.decrypt(src1));
      System.out.println("DES解密：" + src2 + "，长度：" + des.decrypt(src2));
      System.out.println("DES解密：" + src3 + "，长度：" + des.decrypt(src3));
      System.out.println("DES解密：" + src4 + "，长度：" + des.decrypt(src4));
      System.out.println("DES解密：" + src5 + "，长度：" + des.decrypt(src5));
      System.out.println("DES解密：" + src6 + "，长度：" + des.decrypt(src6));
      System.out.println();
      System.out.println("DES解密：" + src7 + "，长度：" + des.decrypt(src7));
      System.out.println("DES解密：" + src8 + "，长度：" + des.decrypt(src8));
      System.out.println("DES解密：" + src9 + "，长度：" + des.decrypt(src9));
      System.out.println("DES解密：" + src10 + "，长度：" + des.decrypt(src10));
      System.out.println("DES解密：" + src11 + "，长度：" + des.decrypt(src11));
      System.out.println("DES解密：" + src12 + "，长度：" + des.decrypt(src12));
    }
    catch (Exception e) {
      e.printStackTrace();
    }
  }
}
